﻿@model IEnumerable<AgendaDoEstudante.Models.Agenda>

@{
    ViewBag.Title = "Index";
}

<h2>AGENDA</h2>


<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Assunto)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Descricao)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Prioridade)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Data)
        </th>
        <th>
            Opções
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Assunto)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Descricao)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Prioridade)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Data)
        </td>
        <td>
            <ul class="phrp">
            @Html.ActionLink("Editar", "Edit", new { id=item.Id }) 

            @Html.ActionLink("Detalhes", "Details", new { id=item.Id })

            @Html.ActionLink("Excluir", "Delete", new { id=item.Id })
                    </ul>
        </td>
    </tr>
}

</table>

<ul class="phrp">
    <li>@Html.ActionLink("Adicionar Compromisso", "Create")</li>
</ul>